public void Load<NodeDataType>( XContainer root, Func<XElement,NodeDataType> nodedataallocator ) where NodeDataType: TreeModelNodeData<NodeKey>
Parameters
- root
- the
XContainerholding all of the data - nodedataallocator
- a function that takes an
XElementand returns either a newly constructed object of type NodeDataType or null if thatXElementis to be ignored
Type Parameters
- NodeDataType
- this must be a class inheriting from TreeModelNodeData<NodeKey>